package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class StartFieldToEndField implements IntervalQualifier {

    private int beginIndex;
    private int endIndex;
    private StartField startField;
    private EndField endField;

    public StartFieldToEndField(StartField startField, EndField endField) {
        this.beginIndex = startField.getBeginIndex();
        this.endIndex = endField.getEndIndex();
        this.startField = startField;
        this.endField = endField;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public StartField getStartField() {
        return startField;
    }

    public EndField getEndField() {
        return endField;
    }

}
